import { ApiProperty } from '@nestjs/swagger';
import { IsAlpha, IsString } from 'class-validator';

export class UpdateRoleAdminReqDto {
  @ApiProperty({ description: '角色名称' })
  @IsAlpha(undefined, { message: '角色名称只能包含字母(a-zA-Z)' })
  readonly name: string;

  @ApiProperty({ description: '角色描述' })
  @IsString({ message: '角色描述格式不正确' })
  readonly description: string;
}
